package common

func NewInitArgs() (result *InitArgs) {
	result = new(InitArgs)
	result.param = make(map[string]interface{})
	return result
}

// 初始化参数对象
type InitArgs struct {
	param map[string]interface{}
}

func (this *InitArgs) GetVal(key string) interface{} {
	v, ok := this.param[key]
	if ok {
		return v
	} else {
		return nil
	}
}

func (this *InitArgs) SetVal(key string, val interface{}) *InitArgs {
	this.param[key] = val
	return this
}
